package cn.kgc.springboot.service.impl;

import cn.kgc.springboot.entity.UserRole;
import cn.kgc.springboot.mapper.UserRoleMapper;
import cn.kgc.springboot.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/8/12
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;
    @Override
    public List<UserRole> selectByUserId(Integer id) {
        List<UserRole> userRoles = userRoleMapper.selectByUserId(id);
        return userRoles;
    }
}
